﻿using System;
using System.Collections.Generic;
using System.Text;


    public static class Projects
    {
        public static void CreateProject(string projectName, string projectDirectory, ProjectLanguages projectLanguage)
        {
            try
            {
                projectDirectory += @"\" + projectName;
                if (!System.IO.Directory.Exists(projectDirectory))
                {
                    System.IO.Directory.CreateDirectory(projectDirectory);
                }
                Project.ProjectDirectory = projectDirectory;
                Project.ProjectName = projectName;
                Project.ProjectNamespace = projectName;
                Project.AssemblyName = projectName;
                Project.ProgrammingLanguage = projectLanguage;
                Project.SaveProject();
            }
            catch (Exception ex)
            {
                throw ex;
            }            
        }

        public static void OpenProject()
        {

        }
    }

